package com.hr.classes.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hr.classes.entity.TbWorkRecord;
import com.hr.classes.entity.dto.TbWorkRecordDTO;
import com.hr.classes.entity.dto.TbWorkRecordPerDto;
import com.hr.classes.entity.vo.TbWorkRecordStatisticsVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TbWorkRecordMapper extends BaseMapper<TbWorkRecord> {


    IPage<TbWorkRecordDTO> listTbWorkRecord(IPage<TbWorkRecordDTO> page, String empName, String workCode, String deptName);

    List<TbWorkRecordDTO> listTbWorkRecord(String empName, String workCode, String deptName);

    IPage<TbWorkRecordStatisticsVO> getMonthlyWorkRecordStatistics(IPage<TbWorkRecordStatisticsVO> page, String empName, String workCode, String deptName, String month);

    List<TbWorkRecordStatisticsVO> getMonthlyWorkRecordStatistics(String empName, String workCode, String deptName, String month);



//    Integer getRuleById(Integer userId);
    List<TbWorkRecord> getRecordByDate(TbWorkRecordPerDto tbWorkRecordPerDto);

}
